<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增预报名管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-Forecastname-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生姓名：</label>
                <div class="col-sm-8">
                    <input name="stuName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8">
                    <select name="stuSex" class="form-control" th:with="type=${@dict.getType('sys_user_sex')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_stu_Status')}">
                        <input type="radio" th:id="${'stuStatus_' + dict.dictCode}" name="stuStatus" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'stuStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">报名时间：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="stuTime" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">报名时间：</label>
                <div class="col-sm-8">
                    <input type="text" class="time-input" id="stuTime" name="stuTime"/>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生手机号：</label>
                <div class="col-sm-8">
                    <input name="stuTel" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生身份证：</label>
                <div class="col-sm-8">
                    <input name="stuIdentity" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生籍贯：</label>
                <div class="col-sm-8">
                    <input name="stuNative" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="stuRemarks" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        /*
<![CDATA[*/
        contextPath = /*[[@{/}]]*/'';
        /*]]
        */
        var prefix = contextPath + "system/Forecastname";
        $("#form-Forecastname-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-Forecastname-add').serialize());
            }
        }
    </script>
</body>
</html>